﻿@model IEnumerable<InVision_Ticket.Models.CustomerViewModel>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
@*        <th>
            CustomerID
        </th>*@
        <th>
            BusinessCustomer
        </th>
        @*<th>
            CustomerContactID
        </th>*@
		<th>
			Name
		</th>
@*        <th>
            FirstName
        </th>
        <th>
            LastName
        </th>*@
        <th>
            PhoneString
        </th>
        @*<th>
            Address1
        </th>
        <th>
            Address2
        </th>
        <th>
            City
        </th>
        <th>
            State
        </th>
        <th>
            Zip
        </th>*@
        <th>
            Email
        </th>
        <th>
            PromotionalEmail
        </th>
@*		<th>
            CustomerNotes
        </th>*@
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
@*        <td>
            @Html.DisplayFor(modelItem => item.CustomerID)
        </td>*@
        <td>
            @Html.DisplayFor(modelItem => item.BusinessCustomer)
        </td>
  @*      <td>
            @Html.DisplayFor(modelItem => item.CustomerContactID)
        </td>*@
@*        <td>
            @Html.DisplayFor(modelItem => item.FirstName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LastName)
        </td>*@
		<td>
			@Html.DisplayFor(modelItem => item.CustomerName)
		</td>
        <td>
            @Html.DisplayFor(modelItem => item.PhoneString)
        </td>
     @*   <td>
            @Html.DisplayFor(modelItem => item.Address1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Address2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.City)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.State)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Zip)
        </td>*@
        <td>
            @Html.DisplayFor(modelItem => item.Email)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PromotionalEmails)
        </td>
@*		 <td>
            @Html.DisplayFor(modelItem => item.CustomerNotes)
        </td>*@
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.CustomerContactID }) |
            @Html.ActionLink("Details", "Details", new { id = item.CustomerContactID }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.CustomerContactID })
        </td>
    </tr>
}

</table>
